package com.yuanjin.util;

import android.app.Application;

import com.baidu.mapapi.SDKInitializer;
import com.iflytek.cloud.SpeechUtility;
import com.thinkland.sdk.android.JuheSDKInitializer;
import com.yuanjin.R;

public class YuanJin_Application extends Application {
	public String receiveData;
	public int receiveData_Sum;
	// �����û���,�ڳ�ʼ��¼��ʱ��㿪ʼ�������
	public static String username = "";

	// �����û���,�ڳ�ʼ��¼��ʱ��㿪ʼ�������
	public static String message_sum = "0";

	@Override
	public void onCreate() {
		super.onCreate();
		// 应用程序入口处调用，避免手机内存过小，杀死后台进程后通过历史intent进入Activity造成SpeechUtility对象为null
		// 如在Application中调用初始化，需要在Mainifest中注册该Applicaiton
		// 注意：此接口在非主进程调用会返回null对象，如需在非主进程使用语音功能，请增加参数：SpeechConstant.FORCE_LOGIN+"=true"
		// 参数间使用半角“,”分隔。
		// 设置你申请的应用appid,请勿在'='与appid之间添加空格及空转义符
		SpeechUtility.createUtility(YuanJin_Application.this, "appid="
				+ getString(R.string.app_id));

		// 以下语句用于设置日志开关（默认开启），设置成false时关闭语音云SDK日志打印
		// Setting.showLogcat(false);
		/******************* 百度地图+聚合数据 *************************/
		SDKInitializer.initialize(getApplicationContext());
		JuheSDKInitializer.initialize(getApplicationContext());
		super.onCreate();

	}

	public String getMessage_sum() {
		return message_sum;
	}

	public void setMessage_sum(String message_sum) {
		this.message_sum = message_sum;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getReceiveData() {
		return receiveData;
	}

	public void setReceiveData(String receiveData) {
		this.receiveData = receiveData;
	}

	public int getReceiveData_Sum() {
		return receiveData_Sum;
	}

	public void setReceiveData_Sum(int receiveData_Sum) {
		this.receiveData_Sum = receiveData_Sum;
	}

}
